<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link href="./bootstrap/css/bootstrap.min.css" rel="stylesheet" />
		<script src="./bootstrap/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="./wow/css/animate.css">
		<title>用户登录</title>
	</head>
	<style type="text/css">
		* {
			margin: 0;
			padding: 0;
		}

		html,
		body {
			width: 100%;
			height: 100%;
			display: flex;
			align-items: center;
			background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
		}

		#loginPanel {
			width: 70%;
			min-width: 300px;
			max-width: 600px;
			margin: 0 auto;
			border: 1px #055160 solid;
			height: 350px;
			box-shadow: 0px 0px 50px #06357A;
			border-radius: 10px;
			text-align: center;
			padding: 20px;
		}

		.rightAlign {
			text-align: right;
		}
	</style>
	<body>
		<div id="loginPanel" class="wow bounceInDown">
			<h3>用户登录</h3>
			<hr class="mb-4">
			<form action="./index.html" method="get" class="container">
				<div class="row mb-3">
					<div class="col-4 rightAlign">用户名:
					</div>
					<div class="col-8">
						<input type="text" placeholder="请至少填写6个字符" class="form-control" name="username"
							id="usernameInput" required="required" />
					</div>
				</div>
				<div class="row  mb-3">
					<div class="col-4 rightAlign">
						密码:
					</div>
					<div class="col-8">

						<input type="password" id="pswdInput" name="pswd" onfocusout="onPswdFocusOut()"

						<input type="password" id="pswdInput" name="pswd" 

							required="required" class="form-control" />
					</div>
				</div>
				<div class="row  mb-3">
					<div class="col-6">
						<input type="reset" class="form-control bg-light" value="重置" />
					</div>
					<div class="col-6">

						<input type="submit" class="form-control bg-success" value="提交" onclick="loginOK()" />

						
					</div>
				</div>
				<div class="row  mb-3">
					<div class="col-12">
						<button type="button" class="form-control bg-info">未注册用户点击注册</button>

					</div>
					
				</div>


			</form>
		</div>
	</body>
	<script src="./wow/js/wow.min.js"></script>
	<script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.js"></script>
	<script type="text/javascript">

		function loginOK(){
			localStorage.setItem("loginname",document.getElementById("usernameInput").value);
		}

		

		if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) {
			new WOW().init();
		};
	</script>
</html>
